home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / MFC_BC_.ZIP / AFX4BC.H next >
C/C++ Source or Header  |  1993-06-15  |  1KB  |  48 lines

  1. #if     !defined(__AFX4BC_H)
  2. #define         __AFX4BC_H
  3.  
  4. #if     defined(__BORLANDC__)
  5.  
  6. #if     defined(__SMALL__)   ||  defined(__MEDIUM__)
  7. #define  _NEARDATA
  8. #include <dos.h>
  9. #endif  //__SMALL__  ||  __MEDIUM__
  10.  
  11. #define  _WINDOWS
  12. #define  _PORTABLE
  13. #define  BASED_CODE
  14. #define  BASED_DEBUG
  15. #define  BASED_STACK
  16. #define  AFX_STACK_DATA
  17. #define  AFXAPI_DATA
  18. #define  AFXAPI_DATA_TYPE
  19. #define  AFX_MSG_CALL
  20. #define  NO_VBX_SUPPORT
  21.  
  22.  
  23. #if     !defined(__STAT_H)
  24. #include <sys\stat.h>
  25. #endif  //__STAT_H
  26.  
  27. #define  __MSC
  28. #define  _access     access
  29. #define  _find_t     find_t
  30. #define  _gcvt       gcvt
  31. #define  _itoa       itoa
  32. #define  _lseek      lseek
  33. #define  _locking    locking
  34. #define  _LK_UNLCK   LK_UNLCK
  35. #define  _LK_NBLCK   LK_NBLCK
  36.  
  37. #define  _diskfree_t diskfree_t
  38. #define  _stat       stat
  39. #define  _fstat(h,b) fstat((h), (b))
  40.  
  41.  
  42. template <class T> T min( T t1, T t2 ) {  return t1 > t2 ?  t2 : t1;  };
  43. template <class T> T max( T t1, T t2 ) {  return t1 > t2 ?  t1 : t2;  };
  44.  
  45.  
  46. #endif  //  __BORLANDC__
  47. #endif  //  __AFX4BC_H
  48.